package com.happycat.mobile.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @Author shenbin
 * @CreatedDate 2020-09-09
 * @Modified By:
 */
@Data
public class LoginDto {
    @ApiModelProperty(value="账号/手机号(加密后的)", required = true)
    @NotEmpty(message = "账号不能为空")
    private String accountName;

    @ApiModelProperty(value="登录类型:2验证码，3密码")
    private int loginType;

    @ApiModelProperty(value="账号密码(加密后的)")
    private String password;

    @ApiModelProperty(value="验证码")
    private String verifyCode;

    @ApiModelProperty(value="设备号")
    private String device;

    @ApiModelProperty(value="未注册的是否强制注册: 1是，0否. 此时一般用验证码注册登录")
    private Integer isForceRegister = 0;
}
